| Visual Basic (Declaration) | |
|---|---|
Public Overloads Sub Write( _ ByVal buffer() As Byte, _ ByVal originalSequence() As Byte, _ ByVal replacementSequence() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SegmentedStream Dim buffer() As Byte Dim originalSequence() As Byte Dim replacementSequence() As Byte Dim offset As Integer Dim count As Integer instance.Write(buffer, originalSequence, replacementSequence, offset, count) | |
| C# | |
|---|---|
public void Write( byte[] buffer, byte[] originalSequence, byte[] replacementSequence, int offset, int count ) | |
| Managed Extensions for C++ | |
|---|---|
public: void Write( byte[]* buffer, byte[]* originalSequence, byte[]* replacementSequence, int offset, int count ) | |
| C++/CLI | |
|---|---|
public: void Write( array<byte>^ buffer, array<byte>^ originalSequence, array<byte>^ replacementSequence, int offset, int count ) | |
Parameters
- buffer
- The storage location of the data.
- originalSequence
- The sequence to find.
- replacementSequence
- The sequence to replace.
- offset
- The zero-based position in the buffer from which to begin writing from.
- count
- The number of bytes from buffer that should be processed using the byte replacement desired.
Carries out a bytewise find/replace of all occurrences found in buffer of originalSequence with replacementSequence. This method is useful for performing simple encoding of data before sending.
Target Platforms: Microsoft .NET Framework 2.0